import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { FormsModule }   from '@angular/forms';

import { NativeHome } from '../pages/native/nativehome/native-home';
import { FlashlightPage } from '../pages/native/nativelist/flashlight/flashlight';       //手电筒
import { Cameras } from '../pages/native/nativelist/camera/camera';                       //拍照


import { ContactPage } from '../pages/contact/contact';
import { HomePage } from '../pages/home/home';

import { TabsPage } from '../pages/tabs/tabs';

import { XinWen } from '../pages/xinwen/xinwen';
import { XinwenList } from '../pages/xinwen-list/xinwen-list';



@NgModule({
  declarations: [
    MyApp,

    NativeHome,
    FlashlightPage,
    Cameras,

    ContactPage,

    HomePage,

    TabsPage,

    XinWen,
    XinwenList,
  ],
  imports: [
    // IonicModule.forRoot(MyApp)
    IonicModule.forRoot(MyApp, {
        activator:'ripple',                      //用于按钮，更改按下按钮的效果。可用选项："ripple"，"highlight"
        backButtonText: '返回',
        backButtonIcon:'ios-arrow-back',         //用作后退按钮图标的图标
        //mode:'ios',                               //在整个应用程序中使用的模式。
        iconMode: 'ios',                          //在整个应用程序中为所有图标使用的模式。可用选项："ios"，"md"
        modalEnter: 'modal-slide-in',
        modalLeave: 'modal-slide-out',
        tabsPlacement: 'bottom',
        menuType:'reveal',                        //要显示的菜单类型 可用选项："overlay"，"reveal"，"push"
        pageTransition: 'md-transition',             //更改页面时要使用的转换的名称。可用选项："ios-transition"，"md-transition"，"wp-transition"
        swipeBackEnabled: true,                   //是否启用本地iOS滑盖即可返回功能
        tabsHighlight:true,                       //是否在选择该选项卡时显示高亮线
        platforms: {
            ios: {
              activator:'ripple',
            },
         }
      }, {}
    ),
    FormsModule,
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,

    NativeHome,
    FlashlightPage,
    Cameras,

    ContactPage,

    HomePage,

    TabsPage,

    XinWen,
    XinwenList,
  ],
  providers: [{provide: ErrorHandler, useClass: IonicErrorHandler }]
})
export class AppModule {}
